<%@ page language="java" import="java.util.*,javaNews.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	 
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>新闻中国</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script language="javascript">
	function check(){
		var login_username = document.getElementById("uname");
		var login_password = document.getElementById("upwd");
		if(login_username.value == ""){
			alert("用户名不能为空！请重新填入！");
			login_username.focus();	
			return false;
		}else if(login_password.value == ""){
			alert("密码不能为空！请重新填入！");
			login_password.focus();
			return false;
		}
		return true;
	}
	
	function focusOnLogin(){
		var login_username = document.getElementById("uname");
		login_username.focus();	
	}
</script>
	
  </head>
  
  <body onload="focusOnLogin()">
    
<div id="header">
  <div id="top_login">
    <form action="do_login.jsp" method="post" onsubmit="return check()">
      <label> 登录名 </label>
      <input type="text" name="uname" id="uname" value="" class="login_input" />
      <label> 密&#160;&#160;码 </label>
      <input type="password" name="upwd" id="upwd" value="" class="login_input" />
      <input type="submit" class="login_sub" value="登录" />
      <label id="error"> </label>
      <img src="images/friend_logo.gif" alt="Google" id="friend_logo" />
    </form>
  </div>
  <div id="nav">
    <div id="logo"> <img src="images/logo.jpg" alt="新闻中国" /> </div>
    <div id="a_b01"> <img src="images/a_b01.gif" alt="" /> </div>
    <!--mainnav end-->
  </div>
</div>
<div id="container">




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div class="sidebar">
    
    
    <h1> <img src="images/title_1.gif" alt="国内新闻" /> </h1>
    <div class="side_list">
      <ul>      
       
      	<%
      	     MySqlNewsDaoImpl dao=new MySqlNewsDaoImpl();
      	     List<News> newsList=dao.Show(1, 6);
      	     
      	     for(News nn:newsList){
      	     %>
      	          	<li> <a href='news_read.jsp?nid=49'><b><%=nn.getNtitle()%></b></a> </li>      	
      	     
      	     <%
      	     
      	     }
      	
      	 %>      	
       
        	
      	
      </ul>
    </div>
    <h1> <img src="images/title_2.gif" alt="国际新闻" /> </h1>
    <div class="side_list" >
      <ul>      
       
     		<%
      	     List<News> newsList2=dao.Show(2, 6);
      	     
      	     for(News nn:newsList2){
      	     %>
      	          	<li> <a href='news_read.jsp?nid=49'><b><%=nn.getNtitle()%></b></a> </li>      	
      	     
      	     <%
      	     
      	     }
      	
      	 %>      	
      </ul>
    </div>
    <h1> <img src="images/title_3.gif" alt="娱乐新闻" /> </h1>
    <div class="sides_list" >
      <ul style="overflow: hidden">
             	
     		
     		<%
      	     List<News> newsList5=dao.Show(5, 6);
      	     
      	     for(News nn:newsList5){
      	     %>
      	          	<li> <a href='news_read.jsp?nid=49'><b><%=nn.getNtitle()%></b></a> </li>      	
      	     
      	     <%
      	     
      	     }
      	
      	 %>      	
      </ul>
    </div>
  </div>


 
  <div class="main">
    <div class="class_type"> <img src="images/class_type.gif" alt="新闻中心" /> </div>
    <div class="content">
      <ul class="class_date">
            
      	         
	      
	      
	      
	      	<li id='class_month'><a href="util/news_control.jsp?opr=topicNew&tid=1&page=1"><b> 国内 </b></a>
	      
	      
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=2&page=1"><b> 国际 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=3&page=1"><b> 军事 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=4&page=1"><b> 体育 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=5&page=1"><b> 娱乐 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=6&page=1"><b> 社会 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=7&page=1"><b> 财经 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=8&page=1"><b> 科技 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=9&page=1"><b> 健康 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=10&page=1"><b> 汽车 </b></a>
	              
         
               
	      
	      
	      
	          
	      	<a href="util/news_control.jsp?opr=topicNew&tid=11&page=1"><b> 教育 </b></a></li>
	      
	              
         
               
	      
	      
	      
	      	<li id='class_month'><a href="util/news_control.jsp?opr=topicNew&tid=12&page=1"><b> 房产 </b></a>
	      
	      
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=13&page=1"><b> 家居 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=14&page=1"><b> 旅游 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=15&page=1"><b> 文化 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=16&page=1"><b> 其它 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=28&page=1"><b> 探索 </b></a>
	              
         
               
	      
	      
	      
	      
	      
	      	<a href="util/news_control.jsp?opr=topicNew&tid=29&page=1"><b> 另类 </b></a>
	              
         
      
      </li>	
      </ul>
      <ul class="classlist">
              
      	         
	      <li><a href='news_read.jsp?opr=readNew&nid=170'>山西离柳焦煤集团井下人行车发生事故6人死亡 </a><span> 2013-06-06 11:33:46.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=169'>警方错把女警当妓女只是一场乌龙？ </a><span> 2013-06-06 11:33:11.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=168'>高考期间中东部地区将现大范围降雨 </a><span> 2013-06-06 11:32:26.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=167'>景区，如何不再依靠门票收入 </a><span> 2013-06-06 11:31:53.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=77'>“持械抢劫，当场击毙” 浙江永康现超雷人标语 </a><span> 2009-10-28 12:58:20.0 </span></li>
	      
	       <li class='space'></li>
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=73'>国台办介绍大陆高校加大对台招生力度情况 </a><span> 2009-10-28 12:55:07.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=71'>人保部将首次就同工同酬做出规定 </a><span> 2009-10-28 11:00:45.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=70'>重庆警方否认被围殴致死吸毒者曾针刺民众 </a><span> 2009-10-28 11:00:25.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=57'>河南2个乡镇政绩报告内容完全一致引关注 </a><span> 2009-10-28 10:53:44.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=49'>发改委：4万亿投资计划不会挤占民间投资空间 </a><span> 2009-10-28 10:47:12.0 </span></li>
	      
	       <li class='space'></li>
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=48'>重庆涉黑富豪黎强夫妇庭审答辩言辞相互矛盾 </a><span> 2009-10-28 10:46:39.0 </span></li>
	      
	      
	              
	      <li><a href='news_read.jsp?opr=readNew&nid=80'>商贸联委会在杭州开会 中美对贸易争端态度低调 </a><span> 2009-10-28 01:00:11.0 </span></li>
	      
	      
	     	     
	     
	     	     	
	   			<p align="right"> 当前页数:[1/1] </p>
	   		
	   		
	   		
	   		
        		
      </ul>
    </div>   
<div class="picnews">
  <ul>
    <li> <a href="#"><img src="images/Picture1.jpg" width="249" alt="" /> </a><a href="#">幻想中穿越时空</a> </li>
    <li> <a href="#"><img src="images/Picture2.jpg" width="249" alt="" /> </a><a href="#">国庆多变的发型</a> </li>
    <li> <a href="#"><img src="images/Picture3.jpg" width="249" alt="" /> </a><a href="#">新技术照亮都市</a> </li>
    <li> <a href="#"><img src="images/Picture4.jpg" width="249" alt="" /> </a><a href="#">群星闪耀红地毯</a> </li>
  </ul>
</div>
  </div>
</div>
  <div id="friend">
  <h1 class="friend_t"> <img src="images/friend_ico.gif" alt="合作伙伴" /> </h1>
  <div class="friend_list">
    <ul>
      <li> <a href="#">百度</a> </li>
      <li> <a href="#">谷歌</a> </li>
      <li> <a href="#">新浪</a> </li>
      <li> <a href="#">网易</a> </li>
      <li> <a href="#">搜狐</a> </li>
      <li> <a href="#">人人</a> </li>
      <li> <a href="#">中国政府网</a> </li>
    </ul>
  </div>
</div>
<div id="footer">
  <p class=""> 24小时客户服务热线：010-68988888 &#160;&#160;&#160;&#160; <a href="#">常见问题解答</a> &#160;&#160;&#160;&#160; 新闻热线：010-627488888 <br />
    文明办网文明上网举报电话：010-627488888 &#160;&#160;&#160;&#160; 举报邮箱： <a href="#">jubao@jb-aptech.com.cn</a> </p>
  <p class="copyright"> Copyright &copy; 1999-2009 News China gov, All Right Reserver <br />
    新闻中国 版权所有 </p>
</div>

  </body>
</html>
